package com.getword.mongodao;

import com.getword.domain.Course;
import com.getword.domain.Grade;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CourseRepository extends MongoRepository<Course, Long> {
    List<Course> findCourseByNameLike(String key);
    Course findCourseById(Long courseId);

    List<Course> findCourseByGrade(Grade grade);
}
